export const validatePass = (rule, value, callback) => {
    if (value === '') {
        callback(new Error('请输入密码'));
    } else {
        if (this.ruleForm.checkPass !== '') {
            this.$refs.ruleForm.validateField('checkPass');
        }
        callback();
    }
};
export const checkTel = (rule, value, callback) => {
    if (!value) {
        return callback(new Error('手机号不能为空'));
    }
    setTimeout(() => {
        if (value.length < 11) {
            callback(new Error('手机号长度必须为11位'));
        } else {
            callback();
        }
    }, 1000);
};